import request from '@/utils/request'

export function getListPage(query) {
  return request({
    url: '/basic/anchor/',
    method: 'get',
    params: query
  })
}

export function updateData(query) {
  return request({
    url: '/basic/anchor/',
    method: 'POST',
    data: query
  })
}

export function deleteData(query) {
  return request({
    url: `/basic/anchor/${query}`,
    method: 'delete'
  })
}

export function getListAll(query) {
  return request({
    url: '/basic/anchor/listAll/',
    method: 'get',
    params: query
  })
}

export function getAnchorCode(query) {
  return request({
    url: '/basic/anchor/getAnchorCode/',
    method: 'get',
    params: query
  })
}
